package com.lsl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lsl.entity.BlogVote;

public interface BlogVoteService extends IService<BlogVote> {
    boolean vote(Integer blogId, Integer userId, Integer voteType);
    Integer getVoteCount(Integer blogId, Integer voteType);
    Integer getVoteType(Integer blogId, Integer userId);
    boolean changeVote(Integer blogId, Integer userId, Integer newVoteType);
    boolean removeVote(Integer blogId, Integer userId);
}
